package com.kkks.spring_rest.tick.model;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * AbstractWhoGoodsCommentMessage entity provides the base persistence
 * definition of the WhoGoodsCommentMessage entity. @author MyEclipse
 * Persistence Tools
 */
@MappedSuperclass
public abstract class AbstractWhoGoodsCommentMessage implements
		java.io.Serializable {

	// Fields

	private Integer commentId;
	private Integer goodsId;
	private String goodsName;
	private String goodsAttr;
	private Integer userId;
	private String userName;
	private String title;
	private String content;
	private String ipAddress;
	private Boolean status;
	private Integer addTime;

	// Constructors

	/** default constructor */
	public AbstractWhoGoodsCommentMessage() {
	}

	/** full constructor */
	public AbstractWhoGoodsCommentMessage(Integer goodsId, String goodsName,
			String goodsAttr, Integer userId, String userName, String title,
			String content, String ipAddress, Boolean status, Integer addTime) {
		this.goodsId = goodsId;
		this.goodsName = goodsName;
		this.goodsAttr = goodsAttr;
		this.userId = userId;
		this.userName = userName;
		this.title = title;
		this.content = content;
		this.ipAddress = ipAddress;
		this.status = status;
		this.addTime = addTime;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "comment_id", unique = true, nullable = false)
	public Integer getCommentId() {
		return this.commentId;
	}

	public void setCommentId(Integer commentId) {
		this.commentId = commentId;
	}

	@Column(name = "goods_id", nullable = false)
	public Integer getGoodsId() {
		return this.goodsId;
	}

	public void setGoodsId(Integer goodsId) {
		this.goodsId = goodsId;
	}

	@Column(name = "goods_name", nullable = false, length = 120)
	public String getGoodsName() {
		return this.goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	@Column(name = "goods_attr", nullable = false, length = 50)
	public String getGoodsAttr() {
		return this.goodsAttr;
	}

	public void setGoodsAttr(String goodsAttr) {
		this.goodsAttr = goodsAttr;
	}

	@Column(name = "user_id", nullable = false)
	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Column(name = "user_name", nullable = false, length = 60)
	public String getUserName() {
		return this.userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	@Column(name = "title", nullable = false, length = 100)
	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Column(name = "content", nullable = false, length = 250)
	public String getContent() {
		return this.content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	@Column(name = "ip_address", nullable = false, length = 15)
	public String getIpAddress() {
		return this.ipAddress;
	}

	public void setIpAddress(String ipAddress) {
		this.ipAddress = ipAddress;
	}

	@Column(name = "status", nullable = false)
	public Boolean getStatus() {
		return this.status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	@Column(name = "add_time", nullable = false)
	public Integer getAddTime() {
		return this.addTime;
	}

	public void setAddTime(Integer addTime) {
		this.addTime = addTime;
	}

}